<div class="timing-content">Press Compute to time</div>

<div class="matrices">
  <div>
    <h3>First Matrix</h3>
    <div class="matrix-a"></div>
  </div>

  <div>
    <h3>Second Matrix</h3>
    <div class="matrix-b"></div>
  </div>

  <div>
    <h3>Result Matrix</h3>
    <div class="matrix-result">
      <div class="initial-message">
        Press Compute to calculate the result
      </div>
    </div>
  </div>
</div>

<style>
  .timing-content {
    color: #666;
    font-style: italic;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    font-family: monospace;
  }

  .matrices {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    overflow: auto;
    max-height: 100%;
  }

  .matrices h3 {
    text-align: center;
    margin: 0 0 0.75rem 0;
  }

  .matrices > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .matrices [class*='matrix'] {
    display: grid;
    gap: 2px;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.85rem;
    border: 1px solid #e9ecef;
  }

  .matrices [class*='matrix'] > div {
    background: white;
    padding: 0.3rem;
    text-align: center;
    border-radius: 3px;
    min-width: 2rem;
    border: 1px solid #dee2e6;
  }

  .initial-message {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
  }

  @media (max-width: 768px) {
    .matrices {
      grid-template-columns: 1fr;
    }

    .matrices [class*='matrix'] {
      font-size: 0.75rem;
      padding: 0.5rem;
      gap: 1px;
    }

    .matrices [class*='matrix'] > div {
      padding: 0.25rem;
      min-width: 1.8rem;
    }
  }

  @media (max-width: 480px) {
    .matrices [class*='matrix'] {
      font-size: 0.7rem;
      padding: 0.4rem;
    }

    .matrices [class*='matrix'] > div {
      padding: 0.2rem;
      min-width: 1.5rem;
    }

    .initial-message {
      padding: 0.5rem;
    }
  }
</style>
